
package com.gientech.work.demo.springboot.refresh;


import com.ctrip.framework.apollo.core.ConfigConsts;
import com.ctrip.framework.apollo.model.ConfigChangeEvent;
import com.ctrip.framework.apollo.spring.annotation.ApolloConfigChangeListener;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class SpringBootApolloRefreshConfig {

  private static final Logger logger = LoggerFactory.getLogger(SpringBootApolloRefreshConfig.class);



  @ApolloConfigChangeListener(value = {ConfigConsts.NAMESPACE_APPLICATION, "application.yaml"}, interestedKeyPrefixes = {"redis.cache."})
  public void onChange(ConfigChangeEvent changeEvent) {

  }
}
